using System.Collections;
using NUnit.Framework;
using QFramework.Framework.Util;
using UnityEngine.TestTools;

namespace QFramework.Tests.PlayTests
{
    public class Play_v0_0_4
    {
        class MonoSingletonTestClass : MonoSingleton<MonoSingletonTestClass>
        {
            
        }

        [UnityTest]
        public IEnumerator MonoSingletonTest()
        {
            var instanceA = MonoSingletonTestClass.Instance;
            var instanceB = MonoSingletonTestClass.Instance;
            
            Assert.AreEqual(instanceA.GetHashCode(), instanceB.GetHashCode());
            yield return null;
        }
    
        // // A Test behaves as an ordinary method
        // [Test]
        // public void Play_V0_0_4SimplePasses()
        // {
        //     // Use the Assert class to test conditions
        // }
        //
        // // A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
        // // `yield return null;` to skip a frame.
        // [UnityTest]
        // public IEnumerator Play_V0_0_4WithEnumeratorPasses()
        // {
        //     // Use the Assert class to test conditions.
        //     // Use yield to skip a frame.
        //     yield return null;
        // }
    }
}
